package com.ruoyi.standingbook.extermination.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.domain.vo.ExterminationErecordVo;
import com.ruoyi.standingbook.extermination.domain.bo.ExterminationBo;
import com.ruoyi.standingbook.extermination.domain.vo.ExterminationImportDetailVo;
import com.ruoyi.standingbook.extermination.domain.vo.ExterminationPicVo;
import com.ruoyi.standingbook.extermination.domain.vo.ExterminationVo;

import java.util.Collection;
import java.util.List;

/**
 * 四害消杀Service接口
 *
 * @author cc
 * @date 2023-04-30
 */
public interface IExterminationService {

    /**
     * 查询四害消杀
     */
    ExterminationVo queryById(Long id);

    /**
     * 查询四害消杀列表
     */
    TableDataInfo<ExterminationVo> queryPageList(ExterminationBo bo, PageQuery pageQuery);

    /**
     * 查询四害消杀列表
     */
    List<ExterminationVo> queryList(ExterminationBo bo);

    /**
     * 查询Excel四害消杀列表
     */
    List<ExterminationVo> queryExcelList(ExterminationBo bo);

    /**
     * 新增四害消杀
     */
    Boolean insertByBo(ExterminationBo bo);

    /**
     * 修改四害消杀
     */
    Boolean updateByBo(ExterminationBo bo);

    /**
     * 校验并批量删除四害消杀信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 批量插入
     */
    Boolean batchInsert(List<ExterminationImportDetailVo> voList);

    /**
     * 获取四害消杀电子档案信息
     *
     * @param bo
     * @return
     */
    ExterminationErecordVo getExterminationErecordInfo(ExterminationBo bo);

    List<ExterminationPicVo> getDrugPicByDate(String date);

    List<ExterminationPicVo> getBeforePicByDate(String date);

    List<ExterminationPicVo> getCoursePicByDate(String date);

    List<ExterminationPicVo> getAfterPicByDate(String date);

    int getSumByDate(String date);

    List<ExterminationVo> queryListByDate(String date);

    Integer getNumByYearToNow();
}
